package cn.lyn4ever.orders.test;

import cn.lyn4ever.common.R;
import com.alibaba.fastjson.JSON;
import org.junit.jupiter.api.Test;

/**
 * 微信公众号 “小鱼与Java”
 *
 * @date 2020/4/11
 * @auther Lyn4ever
 */
public class DemoTesst {

    @Test
    void TestR(){
        R ok = R.ok("msg");
        System.out.println(ok);
        R put = ok.put("data", "data");
        System.out.println(JSON.toJSONString(R.error()));
        System.out.println(put==R.ok());
    }
}
